import request from "@/utils/request";

export function search(params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchCheckinInfoOfCondition",
    method: 'get',
    params

  });

}

export function Stay(data) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/checkInRetreat/"+data.checkInMark,
    method: 'put',
    data

  });

}
export function disablePackageItem(data) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/disablePackageItem",
    method: 'put',
    data

  });

}
export function enablePackageItem(data) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/enablePackageItem",
    method: 'put',
    data

  });

}
export function searchtype(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/findAllRoomType/"+params.institutionNumber,
    method: 'get',
    params

  });

}

export function searchmnemonicCodeOrName(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/file/"+params.elderlyCondition,
    method: 'get',
    params

  });

}

export function searchCareLevelbyInste(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/searchcarelevelgbyass/"+params.institutionNumber+'/'+params.assessmentLevel,
    method: 'get',
    params

  });

}
export function  searchRecentSelfCare(params) {
  return request({
    url: "/sinohis/pension/profession/evaluationrecord/searchRecentSelfCareEvaluationRecord/"+params.elderlyCode,
    method: 'get',
    params

  });

}
export function searchOfPackageOfConditions(params) {
  return request({
    url: "/sinohis/pension/fee/packagemanager/searchOfPackageOfConditions",
    method: 'get',
    params

  });

}
export function updata(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile",
    method: 'put',
    data

  });

}
export function addupdata(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile",
    method: 'post',
    data

  });

}
export function add(data) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/checkIn",
    method: 'post',
    data

  });

}
export function searchtcinfo(params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchCheckInPackageInfo/"+params.checkInMark,
    method: 'get',
    params

  });

}
export function searchElderlyOfCheckInStatus(params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchElderlyOfCheckInStatus/"+params.elderlyCode,
    method: 'get',
    params

  });

}

export function searchelder(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/"+params.elderlyCode,
    method: 'get',
    params

  });

}
export function searchrole(params) {
  return request({
    url: "/sinohis/pension/sys/user/all/organ",
    method: 'get',
    params
  });
}

//入住信息打印列表
export function checkinmanager(params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/print",
    method: "get",
    params
  });
}
